﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Cookies
/// </summary>
public class Cookies
{
	public Cookies()
	{
	}

    public static string Dil
    {
        get
        {
            if (HttpContext.Current.Request.Cookies["dil"] == null)
            {
                HttpCookie dilCookie = new HttpCookie("dil");
                dilCookie.Value = "TR";
                dilCookie.Expires = DateTime.Now.AddMonths(6);
                HttpContext.Current.Response.Cookies.Add(dilCookie);
            }

            string dil = "TR";
            if (HttpContext.Current.Request.Cookies["dil"].Value == "ENG")
                dil = "ENG";
            return dil;
        }
    }
}